#pragma once

class ITrainTicketModule;
class TrainTicketInfo;

class TicketInfoWindow : public WindowImplBase
{
public:
	TicketInfoWindow();
	~TicketInfoWindow();

public:
	void SetTrainTicketModule(ITrainTicketModule* pModule);
	void ShowInfo(HWND hWnd, const TrainTicketInfo& info);

	virtual void InitWindow();
	virtual void OnFinalMessage(HWND hWnd);

	virtual CDuiString GetSkinFile();
	virtual LPCTSTR GetWindowClassName()const;

	void OnCloseWindow(CControlUI* pbtn);
	void OnBuyTicket(CControlUI* pbtn);

private:
	ITrainTicketModule* m_pTrainTicketModule;
};

